package xin.ryven.workflow.repository;

import org.springframework.stereotype.Repository;
import xin.ryven.workflow.model.ProcessRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;

@Repository
public interface ProcessRequestRepository extends JpaRepository<ProcessRequest, Long> {
    List<ProcessRequest> findByRequesterId(Long requesterId);
    Optional<ProcessRequest> findByProcessInstanceId(String processInstanceId);
} 